#ifndef GLVIEWPORT_H
#define GLVIEWPORT_H

#include <QGLWidget>
#include <QtGui>
#include <QDebug>
#include "modelo.h"


class GLViewport : public QGLWidget
{
    Q_OBJECT

    Modelo *modelo;
    bool left_button;
    bool right_button;
    int lx,ly;

    float angx,angy;
    float zoom;

public:
    explicit GLViewport(QWidget *parent = 0);
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();

    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);


signals:

public slots:
    void SetModelo(Modelo *modelo_);
};

#endif // GLVIEWPORT_H
